package com.ws.polymorphic;

import javax.crypto.spec.PSource;

public class Man extends Person {

    boolean isSmoking;
    int id = 1002;

    public void earnMoney() {
        System.out.println("男人负责挣钱");
    }

    public void eat() {
        System.out.println("男人吃饭");
    }

    public void walk() {
        System.out.println("男人走路");
    }

    public void sleep() {
        System.out.println("男人睡觉");
    }
}
